<template>
  <div id="app">
    <van-nav-bar/>
    <router-view/>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="/about">菜单</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/my">购物车</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/cate">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style>

</style>
